// 账号校验
export const names = [
  { required: true, message: 'Please input Activity name', trigger: 'blur' },
  { min: 3, max: 5, message: 'Length should be 3 to 5', trigger: 'blur' }
]

// 账号校验
export const accountrule = [
  {
    required: true,
    message: '请输入登录账号',
    trigger: ['change', 'blur']
  },
  {
    min: 3,
    max: 5,
    message: 'Length should be 3 to 5',
    trigger: 'blur'
  },
  {
    type: 'string',
    pattern: /^[a-z]+$/
  }
]

// 密码校验
export const passwordrule = [
  {
    required: true,
    message: '请输入登录密码',
    trigger: 'blur'
  },
  {
    min: 3,
    max: 5,
    message: 'Length should be 3 to 5',
    trigger: 'blur'
  },
  {
    type: 'string',
    pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]*$/
  }
]
